package com.baomidou.springwind.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.springwind.entity.NetworkNode;
import com.baomidou.springwind.entity.Project;
import com.baomidou.springwind.mapper.NetworkNodeDao;
import com.baomidou.springwind.mapper.ProjectServiceDao;
import com.baomidou.springwind.service.NetworkNodeService;
import com.baomidou.springwind.service.ProjectService;
import com.baomidou.springwind.service.support.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * NetworkNode 表数据服务层接口实现类
 */
@Service
public class NetworkNodeServiceImpl extends BaseServiceImpl<NetworkNodeDao, NetworkNode> implements NetworkNodeService {

    @Autowired
    private NetworkNodeDao networkNodeDao;

    @Override
    public List<NetworkNode> getNetworkNodeList(Long batchId) {
        Wrapper<NetworkNode> wrapper = new EntityWrapper<NetworkNode>();
        wrapper.eq("batch_id", batchId);
        return networkNodeDao.selectList(wrapper);
    }
}